package cn.cangfei.massage.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;


@TableName("massage_outpatient_relation")
public class MassageOutpatientRelation implements Serializable {
    /**
     * 关系编号
     *
     * @mbg.generated
     */
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "关系编号")
    private Long id;

    /**
     * 推拿馆编号
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "推拿馆编号")
    @TableField("massage_id")
    private Long massageId;

    /**
     * 门诊编号
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "门诊编号")
    @TableField("outpatient_id")
    private Long outpatientId;

    /**
     * 创建时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "创建时间")
    @TableField(value = "gmt_create", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT)
    private Date gmtCreate;

    /**
     * 更新时间
     *
     * @mbg.generated
     */
    @ApiModelProperty(value = "更新时间")
    @TableField(value = "gmt_modified", fill = com.baomidou.mybatisplus.annotation.FieldFill.INSERT_UPDATE)
    private Date gmtModified;

    private static final long serialVersionUID = 1L;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getMassageId() {
        return massageId;
    }

    public void setMassageId(Long massageId) {
        this.massageId = massageId;
    }

    public Long getOutpatientId() {
        return outpatientId;
    }

    public void setOutpatientId(Long outpatientId) {
        this.outpatientId = outpatientId;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public Date getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(Date gmtModified) {
        this.gmtModified = gmtModified;
    }

    @Override
    public String toString() {
        String sb = getClass().getSimpleName() +
                " [" +
                "Hash = " + hashCode() +
                ", id=" + id +
                ", massageId=" + massageId +
                ", outpatientId=" + outpatientId +
                ", gmtCreate=" + gmtCreate +
                ", gmtModified=" + gmtModified +
                ", serialVersionUID=" + serialVersionUID +
                "]";
        return sb;
    }
}
